﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc.Ajax;
using System.Web.Routing;

namespace System.Web.Mvc.Ajax
{
    public static class AjaxExtensions
    {
        public static MvcHtmlString ActionLink(this AjaxHelper ajaxHelper, string linkText, string actionName)
        {
            return ajaxHelper.ActionLink(linkText, actionName, new CustomAjaxOptions() { HttpMethod = "get" });
        }
        public static MvcHtmlString ActionLink(this AjaxHelper ajaxHelper, string linkText, string actionName, RouteValueDictionary routeValues)
        {
            return ajaxHelper.ActionLink(linkText, actionName, routeValues, new CustomAjaxOptions() { HttpMethod = "get" });
        }
        public static MvcHtmlString ActionLink(this AjaxHelper ajaxHelper, string linkText, string actionName, string controllerName)
        {
            return ajaxHelper.ActionLink(linkText, actionName, controllerName, new CustomAjaxOptions() { HttpMethod = "get" });
        }
        public static MvcHtmlString ActionLink(this AjaxHelper ajaxHelper, string linkText, string actionName, object routeValues)
        {
            return ajaxHelper.ActionLink(linkText, actionName, routeValues, new CustomAjaxOptions() { HttpMethod = "get" });
        }
    }
}
